<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>添加分类</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="../../layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="../../css/public.css" media="all" />
    <style>
        .thumbBox::after {
            position: absolute;
            width: 300px;
            height: 151px;
            line-height: 153px;
            z-index: -1;
            text-align: center;
            font-size: 20px;
            content: "上传图片";
            left: 0px;
            top: 0px;
            color: rgb(159, 159, 159);
        }
        input#file{
            position: relative;
            top: 58px;
            width: 65px;
            left: 20px;
            z-index: 100;
        }
        .shopPic{
            width: 100%;
            height: 100%;
        }
    </style>
</head>
<body class="childrenBody">

<form class="layui-form layui-row layui-col-space10" id="a-form" style="margin-top: 50px;">

    <div class="layui-col-md12 layui-col-xs12">
        <div class="layui-row layui-col-space10">
            <div class="layui-col-md6 layui-col-xs7 layui-col-lg-offset3">
                <div class="layui-form-item magt3">
                    <label class="layui-form-label">分类名称</label>
                    <div class="layui-input-block">
                        <input type="text" class="layui-input name" name="name"  placeholder="请输入分类名称">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">分类描述</label>
                    <div class="layui-input-block">
                        <input type="text" class="layui-input phone" name="description"  placeholder="分类描述">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">分类预览图</label>
                    <div class="layui-form-file">
                        <input type="hidden" name="iconUrl" id="picUrl">
                        <input type="file" id="file" name='file'>
                    </div>
                </div>
                <div class="layui-col-md3 layui-col-xs5 layui-file-display">
                    <div class="layui-upload-list thumbBox mag0 magt3" name="thumbBox">
                        <img class="layui-upload-img shopPic" name="activityPic">
                    </div>
                </div>
                <a class="layui-btn layui-btn-md" style="margin-left: 200px; margin-top:50px; width: 170px; text-align: center;" lay-filter="addActivity" lay-submit>保存</a>
            </div>
        </div>

    </div>
</form>
<script src="../../../js/ip.js"></script>
<script src="../../../js/jquery-1.11.1.js"></script>
<script src="../../../js/jquery.cookie.js"></script>
<script type="text/javascript" src="../../layui/layui.js"></script>
<script type="text/javascript" src="class-add.js"></script>
</body>
</html>